import http from "@/utils/request"

//获取学员列表

export const getStuListApi = (page = 1, count = 10, classes = '') => http.get('/students/getstulist', {
    params: {
        page,
        count,
        class: classes
    }
})


//搜索学员信息
export const searchStuListApi = (key = '', count = 10, page = 1) => http.get('/students/searchstu', {
    params: {
        key,
        count,
        page
    }
})


//增加学员信息
export const addStuApi = param => http.post('/students/addstu', param)

//删除学员信息
export const delStuApi = sId => http.get("/students/delstu", {
    params: {
        sId
    }
})

//修改学员信息
export const updateStuApi = param => http.post("/students/updatestu", param)

